﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>裁切头像</title>
    <link href="/CSS/common.css" rel="stylesheet" type="text/css" />
    <link href="/CSS/account.css" rel="stylesheet" type="text/css" />
	<script src="/js/jquery.js" language="javascript" type="text/javascript"></script>
    <script src="/js/common.js" language="javascript" type="text/javascript"></script>
    <link href="/CSS/imgareaselect-default.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="/js/imgareaselect.js"></script>
    <script type="text/javascript" language="javascript" src="/js/cutImg.js"></script>
</head>
<body>
	$Header$
    <div id="body">
    	<div class="left">
        	$LeftUserCmd$
        	$LeftUserFriendAdd$
        </div>
        <div class="right">
            <ul class="account">
                <h1>
                    <a href="javascript:;" onclick="history.go(-1)">返回上一页</a><p>
                        <b>裁切头像</b></p>
                </h1>
                <li>
                    <div class="accdiv">
                        <h2><a href="/PersonalInfo/BasicInfo.aspx"><span>基本信息 </span></a>
                            <!--<a href="#"><span>联系信息</span></a>-->
                            <a href="/PersonalInfo/PrivacyLike.aspx"><span>个人爱好</span></a> 
                            <!--<a href="#"><span>教育信息</span></a>-->
                            <a href="/PersonalInfo/WorkInfo.aspx"><span>工作信息</span></a> 
                            <a href="/PersonalInfo/UpLoadPortrait.aspx" class="sel"><span>上传头像</span></a>
                            <a href="/PersonalInfo/PrivacySet.aspx"><span>隐私设置</span></a> 
                            <a href="/PersonalInfo/AccountManage.aspx" class="last"><span>账户管理</span></a>
                        </h2>
                    	<ul>
                        	<li class="userinfo">
                            	<div class="f_left">
                                	<ul>
                                    	<h3>选择头像区域</h3>
                                        <li class="red">可直接对图片区域框选，拉动选框四角，选择头像区域大小。</li>
                                        <li><img src="$PhotoFilePath$" id="photo" /></li>
                                        <li>
                                        	<form action="/PersonalInfo/CutPortrait.aspx?Type=SaveCutedPhoto" method="post">
                                                <input type="hidden" id="x1" name="x1" />
                                                <input type="hidden" id="x2" name="x2" />
                                                <input type="hidden" id="y1" name="y1"/>
                                                <input type="hidden" id="y2" name="y2"/><input type="hidden" id="filepath" name="filepath" value="$PhotoFilePath$"/>
                                                <input type="submit" class="input_btn" value="保存头像" />
                                        	</form>
                                        </li>
                                    </ul>
                            	</div>
                                <div class="f_right">
                                	<h3>头像预览</h3>
                                	<ul>
                                    	<li>标准头像：</li>
                                    	<li>
                                            <div id="preview">
                                                <img src="$PhotoFilePath$" style="width: 100px; height: 100px;" />
                                            </div>
                                        </li>
                                    </ul>
                                    <h3></h3>
                                    <ul>
                                   		<li>较大头像：</li>
                                    	<li><img alt=当前头像 width="100px" src="$PhotoFilePath$"></li>
                                    </ul>
                                </div>
                            </li>
                        </ul>
                    </div>
                </li>
                <h6></h6>
            </ul>
        </div> 
    </div>
    <div class="Clear"></div>
    <script type="text/javascript" language="javascript">
        $(function(){
            resetImg()
        })
    </script>
    $Footer$
</body>
</html>
